package snowflake

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagBaseTimeBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagBaseTimeBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.ConfigNodeName = configNodeName
	b.F.Long = "base-time"
	b.F.DefaultValue = 1624511480
	b.F.Description = `
        起始记录的时间，此时间往后 69 年可以正常使用`

}

func FlagBaseTime(ctx context.Context) *yscmd.Flag {
	b := FlagBaseTimeBuilder{}
	b.Init(ctx)
	return b.Flag()
}
